package main.java.Fzy.Demo.MyThread;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.*;

/***
* @author LazyCat
* @date  2022/9/12
* @param
* @return
 * 通过 Callable和 ExecutorService创建线程
*/
public class CreatedThreadThree implements Callable<String> {

    private String name;

    public CreatedThreadThree(){}

    public CreatedThreadThree(String name){
        this.name = name;
    }

    @Override
    public String call() throws Exception {
        //call方法内为线程的实现逻辑
        return name;
    }

//    class MyPool{
//        public void createdThread() throws ExecutionException, InterruptedException {
//
//        }
//
//    }




}
